/**
 * 
 */
package com.pinellus.gwtext.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

/**
 * @author Gianluca
 *
 */
public interface TestServlet extends RemoteService {

	public static final String SERVICE_URI = "/pinellus";

	public static class Util {

		public static TestServletAsync getInstance() {

			TestServletAsync instance = (TestServletAsync) GWT
					.create(TestServlet.class);
			ServiceDefTarget target = (ServiceDefTarget) instance;
			target.setServiceEntryPoint(GWT.getModuleBaseURL() + SERVICE_URI);
			return instance;
		}
	}

}
